package com.java.service.impl;

import com.java.dao.BOrderDao;
import com.java.dao.impl.BOrderDaoImpl;
import com.java.domain.BOrder;
import com.java.service.BOrderService;

import java.util.List;

public class BOrderServiceImpl implements BOrderService {

    private BOrderDao bOrderDao = new BOrderDaoImpl();

    @Override
    public List<BOrder> queryBOrder(BOrder bOrder) {
        return bOrderDao.queryBOrder(bOrder);
    }

    //查询订单数
    @Override
    public int queryBOrderTotal() {
        return (int) bOrderDao.queryBOrderTotal();
    }

    @Override
    public int delBOrder(String oid) {
        return bOrderDao.delBOrder(oid);
    }
}
